package api

import (
	"github.com/gin-gonic/gin"
	"week61/api/handler"
)

func LoadApiRouter(r *gin.Engine) {
	user := r.Group("/user")
	{
		v := user.Group("/UserShop")
		{
			v.POST("/sendSms", handler.SendSms)
			v.POST("/login", handler.Login)
			v.POST("/register", handler.Register)
			v.POST("/addOrder", handler.AddOrder)
			v.GET("/orderList", handler.OrderList)
		}
	}
}
